package www.alterzhang.cn.webservice;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2018/4/14 0014.
 */
@RestController
public class HelloWorldController {


    @RequestMapping("/getStr")
    public String getStr(){
        return "success";
    }

    @RequestMapping("/getMap")
    public Map<String,Object> getMap(){
        Map<String,Object> map=new HashMap<String,Object>();
        map.put("result","success");
       int i= 1/0;
        return map;
    }

}
